package com.ruicar.afs.cloud.auth.oauth2;

import com.ruicar.afs.cloud.common.core.util.HessianUtil;
import org.springframework.data.redis.serializer.JdkSerializationRedisSerializer;

public class AfsSerializationRedisSerializer extends JdkSerializationRedisSerializer {
    @Override
    public Object deserialize(byte[] bytes) {
        return HessianUtil.deserializeNoCompress(bytes);
    }

    @Override
    public byte[] serialize(Object object) {
        return HessianUtil.serializationNoCompress(object);
    }
}
